package com.shenmazong.servereduresume.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 简历信息表:闫瑞
 * @TableName tb_information
 */
@TableName(value ="tb_information")
@Data
public class TbInformation implements Serializable {
    /**
     * 简历个人信息id
     */
    @TableId
    private Long informationId;

    /**
     * 简历个人姓名
     */
    private String informationName;

    /**
     * 出生日期
     */
    private Date informationBirthday;

    /**
     * 联系电话
     */
    private String informationTel;

    /**
     * 联系邮箱
     */
    private String informationEmail;

    /**
     * 工作年限
     */
    private Integer workNum;

    /**
     * 简历个人照片
     */
    private String informationImg;

    /**
     * 性别1男0女2无
     */
    private Boolean informationSex;

    /**
     * 身高cm
     */
    private Integer informationHeight;

    /**
     * 体重kg
     */
    private Integer informationWeight;

    /**
     * 民族
     */
    private String informationNation;

    /**
     * 籍贯
     */
    private String informationPlace;

    /**
     * 政治面貌0无1中共党员2中共预备党员3共青团员4普通群众5群众
     */
    private Byte politicsStatus;

    /**
     * 婚姻状况0无1已婚2未婚3离异4已婚已育
     */
    private Byte informationMarriage;

    /**
     * 求职意向
     */
    private String informationIntention;

    /**
     * 意向城市
     */
    private String informationCity;

    /**
     * 期望薪资
     */
    private Long expectSalary;

    /**
     * 入职时间0无1随时到岗2一周内到岗3一月内到岗4到岗时间另行商议
     */
    private Boolean informationEntry;

    /**
     * 技能特长内容
     */
    private String skillText;

    /**
     * 荣誉证书内容
     */
    private String certificateText;

    /**
     * 自我评价
     */
    private String selfEvaluation;

    /**
     * 创建人id
     */
    private Long userId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 物理删除0未删除1删除
     */
    private Byte deleteFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbInformation other = (TbInformation) that;
        return (this.getInformationId() == null ? other.getInformationId() == null : this.getInformationId().equals(other.getInformationId()))
            && (this.getInformationName() == null ? other.getInformationName() == null : this.getInformationName().equals(other.getInformationName()))
            && (this.getInformationBirthday() == null ? other.getInformationBirthday() == null : this.getInformationBirthday().equals(other.getInformationBirthday()))
            && (this.getInformationTel() == null ? other.getInformationTel() == null : this.getInformationTel().equals(other.getInformationTel()))
            && (this.getInformationEmail() == null ? other.getInformationEmail() == null : this.getInformationEmail().equals(other.getInformationEmail()))
            && (this.getWorkNum() == null ? other.getWorkNum() == null : this.getWorkNum().equals(other.getWorkNum()))
            && (this.getInformationImg() == null ? other.getInformationImg() == null : this.getInformationImg().equals(other.getInformationImg()))
            && (this.getInformationSex() == null ? other.getInformationSex() == null : this.getInformationSex().equals(other.getInformationSex()))
            && (this.getInformationHeight() == null ? other.getInformationHeight() == null : this.getInformationHeight().equals(other.getInformationHeight()))
            && (this.getInformationWeight() == null ? other.getInformationWeight() == null : this.getInformationWeight().equals(other.getInformationWeight()))
            && (this.getInformationNation() == null ? other.getInformationNation() == null : this.getInformationNation().equals(other.getInformationNation()))
            && (this.getInformationPlace() == null ? other.getInformationPlace() == null : this.getInformationPlace().equals(other.getInformationPlace()))
            && (this.getPoliticsStatus() == null ? other.getPoliticsStatus() == null : this.getPoliticsStatus().equals(other.getPoliticsStatus()))
            && (this.getInformationMarriage() == null ? other.getInformationMarriage() == null : this.getInformationMarriage().equals(other.getInformationMarriage()))
            && (this.getInformationIntention() == null ? other.getInformationIntention() == null : this.getInformationIntention().equals(other.getInformationIntention()))
            && (this.getInformationCity() == null ? other.getInformationCity() == null : this.getInformationCity().equals(other.getInformationCity()))
            && (this.getExpectSalary() == null ? other.getExpectSalary() == null : this.getExpectSalary().equals(other.getExpectSalary()))
            && (this.getInformationEntry() == null ? other.getInformationEntry() == null : this.getInformationEntry().equals(other.getInformationEntry()))
            && (this.getSkillText() == null ? other.getSkillText() == null : this.getSkillText().equals(other.getSkillText()))
            && (this.getCertificateText() == null ? other.getCertificateText() == null : this.getCertificateText().equals(other.getCertificateText()))
            && (this.getSelfEvaluation() == null ? other.getSelfEvaluation() == null : this.getSelfEvaluation().equals(other.getSelfEvaluation()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getInformationId() == null) ? 0 : getInformationId().hashCode());
        result = prime * result + ((getInformationName() == null) ? 0 : getInformationName().hashCode());
        result = prime * result + ((getInformationBirthday() == null) ? 0 : getInformationBirthday().hashCode());
        result = prime * result + ((getInformationTel() == null) ? 0 : getInformationTel().hashCode());
        result = prime * result + ((getInformationEmail() == null) ? 0 : getInformationEmail().hashCode());
        result = prime * result + ((getWorkNum() == null) ? 0 : getWorkNum().hashCode());
        result = prime * result + ((getInformationImg() == null) ? 0 : getInformationImg().hashCode());
        result = prime * result + ((getInformationSex() == null) ? 0 : getInformationSex().hashCode());
        result = prime * result + ((getInformationHeight() == null) ? 0 : getInformationHeight().hashCode());
        result = prime * result + ((getInformationWeight() == null) ? 0 : getInformationWeight().hashCode());
        result = prime * result + ((getInformationNation() == null) ? 0 : getInformationNation().hashCode());
        result = prime * result + ((getInformationPlace() == null) ? 0 : getInformationPlace().hashCode());
        result = prime * result + ((getPoliticsStatus() == null) ? 0 : getPoliticsStatus().hashCode());
        result = prime * result + ((getInformationMarriage() == null) ? 0 : getInformationMarriage().hashCode());
        result = prime * result + ((getInformationIntention() == null) ? 0 : getInformationIntention().hashCode());
        result = prime * result + ((getInformationCity() == null) ? 0 : getInformationCity().hashCode());
        result = prime * result + ((getExpectSalary() == null) ? 0 : getExpectSalary().hashCode());
        result = prime * result + ((getInformationEntry() == null) ? 0 : getInformationEntry().hashCode());
        result = prime * result + ((getSkillText() == null) ? 0 : getSkillText().hashCode());
        result = prime * result + ((getCertificateText() == null) ? 0 : getCertificateText().hashCode());
        result = prime * result + ((getSelfEvaluation() == null) ? 0 : getSelfEvaluation().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", informationId=").append(informationId);
        sb.append(", informationName=").append(informationName);
        sb.append(", informationBirthday=").append(informationBirthday);
        sb.append(", informationTel=").append(informationTel);
        sb.append(", informationEmail=").append(informationEmail);
        sb.append(", workNum=").append(workNum);
        sb.append(", informationImg=").append(informationImg);
        sb.append(", informationSex=").append(informationSex);
        sb.append(", informationHeight=").append(informationHeight);
        sb.append(", informationWeight=").append(informationWeight);
        sb.append(", informationNation=").append(informationNation);
        sb.append(", informationPlace=").append(informationPlace);
        sb.append(", politicsStatus=").append(politicsStatus);
        sb.append(", informationMarriage=").append(informationMarriage);
        sb.append(", informationIntention=").append(informationIntention);
        sb.append(", informationCity=").append(informationCity);
        sb.append(", expectSalary=").append(expectSalary);
        sb.append(", informationEntry=").append(informationEntry);
        sb.append(", skillText=").append(skillText);
        sb.append(", certificateText=").append(certificateText);
        sb.append(", selfEvaluation=").append(selfEvaluation);
        sb.append(", userId=").append(userId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleteFlag=").append(deleteFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}